package com.qiniuyun.backai.domain.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import jakarta.validation.constraints.NotNull;

/**
 * 消息数据传输对象
 * @author 王程楠
 * @since 2025-09-23
 */
@Data
@Schema(description = "消息数据传输对象")
public class MessageDTO {

    @Schema(description = "会话ID", example = "5001")
    @NotNull(message = "会话ID不能为空")
    private Long convId;

    @Schema(description = "角色类型", example = "USER", allowableValues = {"USER", "ASSISTANT"})
    @NotNull(message = "角色类型不能为空")
    private String role;

    @Schema(description = "内容类型", example = "TEXT", allowableValues = {"TEXT", "AUDIO"})
    @NotNull(message = "内容类型不能为空")
    private String contentType;

    @Schema(description = "消息内容", example = "你好，哈利波特")
    @NotNull(message = "消息内容不能为空")
    private String content;

    @Schema(description = "音频URL", example = "https://storage.example.com/audio/response_123.mp3")
    private String audioUrl;
}